<extend name="Public:base"/>
<block name="left">
    <ul>
    
        
        <li><a href="{:U('Pp/add')}">添加p2p项目</a></li>
        <li><a href="{:U('Pp/lists')}">p2p借款列表</a></li>
        <li><a href=""></a>还款列表</li>
        <li><a href=""></a>还款统计</li>
        <li><a href="{:U('Pp/jdadd')}">添加借款</a></li>
        <li><a href="">总借款列表</a></li>
        <li><a href=""></a>借款人列表</li>
        <li><a href=""></a>借款人添加</li>
        <li><a href=""></a>投资人列表</li>
        <li><a href="{:U('Pp/xyd')}">学业贷</a></li>

        
    </ul>
</block>
<block name="right">
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>还款列表</h5>
                <div class="ibox-tools">
                    <a class="collapse-link">
                        <i class="fa fa-chevron-up"></i>
                    </a>
                    <a class="close-link">
                        <i class="fa fa-times"></i>
                    </a>
                </div>
            </div>
            <div class="ibox-content">
                <div class="row">
                <div class="col-sm-12">
                        <p>编号后加 <i class="fa fa-asterisk text-danger"></i> 时此借款有<span class='text-danger'>备注</span></p>
                </div>
                <div class="col-sm-2">
                        <div class="input-group m-b"><span class="input-group-btn">
                                <button type="button" class="btn btn-primary" >编号</button> </span>
                                <input type="text" class="form-control" id="id" placeholder="精确">
                        </div>
                </div>
                <div class="col-sm-2">
                        <div class="input-group m-b"><span class="input-group-btn">
                                <button type="button" class="btn btn-primary" >借款序号</button> </span>
                                <input type="text" class="form-control" id="borrow_number" placeholder="模糊">
                        </div>
                </div>
                <div class="col-sm-2">
                        <div class="input-group m-b"><span class="input-group-btn">
                                <button type="button" class="btn btn-primary" >借款人</button> </span>
                                <input type="text" class="form-control" id="borrow_uname" placeholder="模糊">
                        </div>
                </div>
                <div class="col-sm-2">
                        <div class="input-group m-b">
                        <span class="input-group-btn">
                                <button type="button" class="btn btn-primary" >以年查询</button> </span>
                                <!-- <input type="text" class="form-control" id="borrow_uname" placeholder="模糊"> -->
                                <select class="form-control m-b" id="year_search">
                                     <option value="{$year-1}">{$year-1}年</option>
                                     <option value="{$year}" selected="">{$year}年</option>
                                     <option value="{$year+1}">{$year+1}年</option>
                                </select>
                        </div>
                </div>
                <div class="col-sm-2">
                        <div class="input-group m-b">
                        <span class="input-group-btn">
                                <button type="button" class="btn btn-primary" >以月查询</button> </span>
                                <!-- <input type="text" class="form-control" id="borrow_uname" placeholder="模糊"> -->
                                <select class="form-control m-b" id="months_search">
                                     <option value="1" selected="">1</option>
                                    <option value="2">2</option>
                                    <option value="3">3</option>
                                    <option value="4">4</option>
                                    <option value="5">5</option>
                                    <option value="6">6</option>
                                    <option value="7">7</option>
                                    <option value="8">8</option>
                                    <option value="9">9</option>
                                    <option value="10">10</option>
                                    <option value="11">11</option>
                                    <option value="12">12</option>
                                </select>
                        </div>
                </div>
                 <div class="col-sm-2" id="export-btn">
                         <a data-type="xls" data-table="repayment_table" href="javascript:;" type="button" class="btn btn-danger btn-sm">导出xls</a>
                 </div>

                </div>
                <div class="table-responsive">
                    <table class="table table-striped table-bordered table-hover dataTables-example" id="repayment_table">
                        <thead>
                            <tr>
                                <th></th>
                                <th>编号</th>
                                <th>借款序号</th>
                                <th>借款人</th>
                                <th>还款金额</th>
                                <th>应还款时间</th>
                                <th>实际还款时间</th>
                                <th>是否已还</th>
                                <th>是否逾期</th>
                                <th>逾期费用</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
</div>
</div>
    <!-- 选择还款时间模态窗口开始 -->
<div class="modal inmodal fade" id="user_relation" tabindex="-1" role="dialog" aria-hidden="true" style="display: none;">
          <div class="modal-dialog modal-sm">
              <form method="post" class="form-horizontal" action="__MODULE__/Repayment/confirm_repayment">
              <div class="modal-content">
                  <div class="modal-header">
                      <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true" class="text-danger"><i class="fa fa-times"></i></span><span class="sr-only">Close</span></button>
                      <p class="modal-title">设置实际还款时间</p>
                  </div>
                  <div class="modal-body">
                            <div class="form-group">
                                <label class="control-label">实际还款时间</label>
                                    <input id="hello" class="laydate-icon form-control layer-date" name="real_repayment_time">
                            </div>
                  </div>
                  <div class="modal-footer">
                        <input type="hidden" name="id" value="">
                      <button type="button" class="btn btn-danger" data-dismiss="modal">关闭</button>
                      <button type="submit" class="btn btn-primary" >确认</button>
                  </div>
              </div>
              </form>
       </div>
    </div>
    <!-- 选择还款时间模态窗口结束 -->
</block>